package com.baizhi.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class AdminLog {
    private Integer id;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;
    private Integer adminId;
    private String content;
    private String type;
    private String ip;
    private Admin admin;

    public Integer getId() {
        return id;
    }

    @Override
    public String toString() {
        return "AdminLog{" +
                "id=" + id +
                ", date=" + date +
                ", adminId=" + adminId +
                ", content='" + content + '\'' +
                ", type='" + type + '\'' +
                ", ip='" + ip + '\'' +
                ", admin=" + admin +
                '}';
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    public AdminLog(Integer id, Date date, Integer adminId, String content, String type, String ip, Admin admin) {
        this.id = id;
        this.date = date;
        this.adminId = adminId;
        this.content = content;
        this.type = type;
        this.ip = ip;
        this.admin = admin;
    }

    public AdminLog() {
    }
}
